]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ShellApp: remove impossible check
authorGiovanni Campagna <gcampagna@src.gnome.org>
Thu, 13 Feb 2014 21:32:48 +0000 (22:32 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 17 Feb 2014 19:44:58 +0000 (20:44 +0100)
The action muxer is created and destroyed with the running state,
it can never be NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=722554

src/shell-app.c

index aed49f01e2ce77384adae1047023043e3d3be469..e2f3c713f487d65e45bb6902f76a75d2c4d38384 100644 (file)
@@ -611,9 +611,7 @@ shell_app_update_window_actions (ShellApp *app, MetaWindow *window)
           g_object_set_data_full (G_OBJECT (window), "actions", actions, g_object_unref);
         }
 
-      if (!app->running_state->muxer)
-        app->running_state->muxer = gtk_action_muxer_new ();
-
+      g_assert (app->running_state->muxer);
       gtk_action_muxer_insert (app->running_state->muxer, "win", actions);
       g_object_notify (G_OBJECT (app), "action-group");
     }